package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TRechargeRecordMapper;
import com.ruoyi.platform.domain.TRechargeRecord;
import com.ruoyi.platform.service.ITRechargeRecordService;

/**
 * 用户充值明细记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TRechargeRecordServiceImpl implements ITRechargeRecordService 
{
    @Autowired
    private TRechargeRecordMapper tRechargeRecordMapper;

    /**
     * 查询用户充值明细记录
     * 
     * @param rechargeId 用户充值明细记录主键
     * @return 用户充值明细记录
     */
    @Override
    public TRechargeRecord selectTRechargeRecordByRechargeId(Long rechargeId)
    {
        return tRechargeRecordMapper.selectTRechargeRecordByRechargeId(rechargeId);
    }

    /**
     * 查询用户充值明细记录列表
     * 
     * @param tRechargeRecord 用户充值明细记录
     * @return 用户充值明细记录
     */
    @Override
    public List<TRechargeRecord> selectTRechargeRecordList(TRechargeRecord tRechargeRecord)
    {
        return tRechargeRecordMapper.selectTRechargeRecordList(tRechargeRecord);
    }

    /**
     * 新增用户充值明细记录
     * 
     * @param tRechargeRecord 用户充值明细记录
     * @return 结果
     */
    @Override
    public int insertTRechargeRecord(TRechargeRecord tRechargeRecord)
    {
        return tRechargeRecordMapper.insertTRechargeRecord(tRechargeRecord);
    }

    /**
     * 修改用户充值明细记录
     * 
     * @param tRechargeRecord 用户充值明细记录
     * @return 结果
     */
    @Override
    public int updateTRechargeRecord(TRechargeRecord tRechargeRecord)
    {
        return tRechargeRecordMapper.updateTRechargeRecord(tRechargeRecord);
    }

    /**
     * 批量删除用户充值明细记录
     * 
     * @param rechargeIds 需要删除的用户充值明细记录主键
     * @return 结果
     */
    @Override
    public int deleteTRechargeRecordByRechargeIds(Long[] rechargeIds)
    {
        return tRechargeRecordMapper.deleteTRechargeRecordByRechargeIds(rechargeIds);
    }

    /**
     * 删除用户充值明细记录信息
     * 
     * @param rechargeId 用户充值明细记录主键
     * @return 结果
     */
    @Override
    public int deleteTRechargeRecordByRechargeId(Long rechargeId)
    {
        return tRechargeRecordMapper.deleteTRechargeRecordByRechargeId(rechargeId);
    }
}
